import OrderIndex from '@/components/order/index.vue'
import OrderInfo from '@/components/order/info.vue'
import OrderExpress from '@/components/order/express.vue'
import OrderRateinfo from '@/components/order/rateinfo.vue'


//路由列表
const list = [
    {
        path:'index',
        name: 'OrderIndex',
        component: OrderIndex,
        meta: {IsLogin: true}
    },
    {
        path:'info',
        name: 'OrderInfo',
        component: OrderInfo,
        meta: {IsLogin: true}
    },
    {
        path:'express',
        name: 'OrderExpress',
        component: OrderExpress,
        meta: {IsLogin: true}
    },
    {
        path:'rateinfo',
        name: 'OrderRateinfo',
        component: OrderRateinfo,
        meta: {IsLogin: true}
    }
]

//父路由结构
const layout = {
    template: `<router-view></router-view>`
}

export default [{
    path: '/order',
    name: 'order',
    children: list,
    component: layout,
}]